<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>


<div id="app">

  <pengge v-for="item in items" v-bind:item="item"></pengge>
<!--  <pengge></pengge>-->

</div>


<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<script>

    // 定义一个vue组件
    Vue.component("pengge", {

        props:['item'],

        template: '  <li>{{item}}</li>  '
    });


    var vm = new Vue({
        el: "#app",
        data: {
            // message: ''
          items:['Java','Linux','前端']
        },
        methods: {}
    })
</script>

</body>
</html>